from django.conf.urls import url
from . import views


urlpatterns = [
    url(r'^api/v1.0/areas', views.AreaView.as_view()),
    url(r'^api/v1.0/houses$', views.HouseView.as_view()),
    url(r'^addhouse/$', views.ShowAddHouseView.as_view()),
    url(r'^api/v1.0/houses/(?P<house_id>\d+)/images$', views.AddHouseImageView.as_view()),
    url(r'^api/v1.0/user/house$', views.UserHousesView.as_view()),
    url(r'^api/v1.0/houses/index$', views.ShowHousesView.as_view()),
    url(r'^api/v1.0/houses$', views.SearchHousesView.as_view()),
    url(r'^api/v1.0/houses/(?P<house_id>\d+)/$', views.HouseDetailView.as_view()),
]